package org.microservice.system.service;

import com.baomidou.mybatisplus.service.IService;
import org.microservice.common.bean.UserVo;
import org.microservice.common.util.R;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2018/6/20
 * Time: 15:49
 * To change this template use File | Settings | File Templates.
 * Description:
 */
public interface SysUserService extends IService<UserVo> {

    UserVo getUserInfoByUserName(String userName);

    List<UserVo> getUserListPage(Map<String,Object> params);

    int getUserListPageTotal(Map<String, Object> params);


    R save(UserVo userVo);

    R update(UserVo userVo);

    R assignRoles(UserVo userVo);

    List<Map<String, String>> getDepartmentLeadersByDepartmentId(Serializable departmentId);

    R assignDataScope(String userName,int id, Map<String,List<Integer>> dataScopes);


    Map<String, List<Integer>> getDataScopeByUserIdOrUserName(Integer id,String username);
}
